package creational.factory.abstractfactory;

import creational.factory.DataBaseDialect;
import creational.factory.MysqlDialect;

/**
 * @Description: MySQL相关工厂
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public class MysqlFactory implements Factory {
    public DataBaseDialect createDialect() {
        return new MysqlDialect();
    }

    public Printer createPrinter() {
        return new RedPrinter();
    }
}
